<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title></title>
		<link rel="stylesheet" type="text/css"
			href="${contextPath}/resource/css/default.css" />
		<script src="${contextPath}/resource/js/index.js"></script>
		<script type="text/javascript">
			function validate(fm){
				if(document.getElementById("updateCircle.gxName").value == ''){
						alert("更新周期名称不能为空");
						return;
				}
				document.getElementById('subbut').disabled=true;
				fm.submit();
			}
		</script>
	</head>
	<body >
		<table class="menu_table">
			<tr>
				<th>
					<a href="updateCircleAction_list.do">更新周期管理</a>
				</th>
			</tr>
		</table>
		
		<s:form action="updateCircleAction_update.do" method="post" namespace="/" >
		<div class="listtable">
		<div class="secondDiv">
 
			<table class="data_js_table">
				<tr><th>
					新增更新周期
				</th></tr>
			</table>
			<s:hidden name="updateCircle.gxId" value="%{updateCircle.gxId}"></s:hidden>
			<table class="form_table">
				<%@include file="/show_field_error.jsp"%>
				<tr>
					<th width="10%">更新周期名称</th>
					<td width="30%">
						<s:textfield name="updateCircle.gxName" id="updateCircle.gxName" size="20" maxlength="50" /><span class="txtblue">*</span>
					</td>
				</tr>
			</table>
			<table width="50%" border="0" align="center" cellpadding="3" cellspacing="1">
				<s:token></s:token>
			    <tr>
			      <td align="center"  >
			      <div align="center">
			      	<input name="subbut" type="button" id="subbut" class="apply_style" align="middle" value="" onclick="validate(this.form)" align="middle"/>
			        <input type="button" onclick="javascript:location='updateCircleAction_list.do'" class="back_style" align="middle" />
			        <input type="reset" id="重置 " class="reset_style" value="" align="middle"/>
			        </div>
			        </td>
			    </tr>
			</table>
		</div>
		</div>
		</s:form>
	</body>
</html>
